class Goods {
  String goodsId;
  String userId;
  String userName;
  String imgUrl;
  String goodsName;
  String goodsInfo;
  String goodsImg;
  String address;
  double price;
  double disPrice;
  String type;
  String classtify;
  bool recommd;
  int status;
  int wantNum;
  int buyNum;
  String createAt;
  String dataLink;
  String reason;

  Goods(
      {this.goodsId,
        this.userId,
        this.userName,
        this.imgUrl,
        this.goodsName,
        this.goodsInfo,
        this.goodsImg,
        this.address,
        this.price,
        this.disPrice,
        this.type,
        this.classtify,
        this.recommd,
        this.status,
        this.wantNum,
        this.buyNum,
        this.createAt,
        this.dataLink,
        this.reason,
      });

  Goods.fromJson(Map<String, dynamic> json) {
    goodsId = json['goodsId'];
    userId = json['userId'];
    userName = json['userName'];
    imgUrl = json['imgUrl'];
    goodsName = json['goodsName'];
    goodsInfo = json['goodsInfo'];
    goodsImg = json['goodsImg'];
    address = json['address'];
    price = json['price'];
    disPrice = json['disPrice'];
    type = json['type'];
    classtify = json['classtify'];
    recommd = json['recommd'];
    status = json['status'];
    wantNum = json['wantNum'];
    buyNum = json['buyNum'];
    createAt = json['createAt'];
    dataLink = json['dataLink'];
    reason = json['reason'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['goodsId'] = this.goodsId;
    data['userId'] = this.userId;
    data['userName'] = this.userName;
    data['imgUrl'] = this.imgUrl;
    data['goodsName'] = this.goodsName;
    data['goodsInfo'] = this.goodsInfo;
    data['goodsImg'] = this.goodsImg;
    data['address'] = this.address;
    data['price'] = this.price;
    data['disPrice'] = this.disPrice;
    data['type'] = this.type;
    data['classtify'] = this.classtify;
    data['recommd'] = this.recommd;
    data['status'] = this.status;
    data['wantNum'] = this.wantNum;
    data['buyNum'] = this.buyNum;
    data['createAt'] = this.createAt;
    data['dataLink'] = this.dataLink;
    data['reason'] = this.reason;
    return data;
  }
}
